//获取信息
function getInfo(item)
{
	var url = item.attr("url") ; 
	var query = {} ;
	showInfo(item, url, query) ;
}

//显示信息
function showInfo(item, url, query)
{
	$.get(url, query, function(data)
	{
		item.html(data);
	});  
}


//返回网页顶部
function goTop(){
	var speed = 1.2;
	var time = 16;
	var dy = 0;
	var by = 0;
	var wy = 0;
	if(document.documentElement){ 
		dy = document.documentElement.scrollTop || 0;
	}
	wy = window.scrollY || 0;
	var y = Math.max(wy,Math.max(by,dy));
	window.scrollTo(0,Math.floor(y/speed));
	if(y > 0){
		setTimeout("goTop()",time);
	}
}




